<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style>
body{text-align:center;background-color:#ccc;padding-top:100px;}
#select{text-align:left;border:1px solid white;width:150px;}
</style>

<script>
function $(id){
	return document.getElementById(id);
}
function ok( obj ){
	$('uid').value = obj.value;
	$('idform').submit();
}
window.onload = function (){
	document.getElementsByName('unick')[0].focus();
}
</script>
</head>

<body style="margin:100px 0px;padding:0px;text-align:center;">
<div style="margin:0px auto;width:760px;">
输入昵称以创建新用户: 
<form id='form' action='./index.php?m=test&a=in' method='post'>
<input type='text' name='unick' id='unick' />
<input type='submit' value='登录' />
</form>
<p></p>
<form id='idform' action='./index.php?m=test&a=in' method='post'>
输入ID直接进入:
<input type='text' name='uid' id='uid' />
<input type='submit' value='登录' />
</form>

<div id='select'>
{*foreach item=u from=$aOut.u100*}
<div><input type='checkbox' value='{*$u.uid*}' onclick='ok( this )'/>{*$u.uname*}</div>
{*/foreach*}
</div>
<div>

</body>
</html>